import request from "./fetch";

export const get = (url, params, headers) => {
  return request({
    url,
    params,
    method: "GET",
    headers,
  });
};

export const post = (url, data, headers) => {
  return request({
    url,
    data,
    method: "POST",
    headers,
  });
};

export const put = (url, data, headers) => {
  return request({
    url,
    data,
    method: "PUT",
    headers,
  });
};

export const del = (url, headers) => {
  return request({
    url,
    method: "DELETE",
    headers,
  });
};
